<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- examples.qdoc -->
  <title>Qt例子和教程 | Qt 5.14</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="index.html">Qt 5.14</a></td><td >Qt 例子和教程</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.14.2 参考文档</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">内容</a></h3>
<ul>
<li class="level1"><a href="#running-the-examples">运行的例子</a></li>
<li class="level1"><a href="#community-examples">社区的例子</a></li>
<li class="level1"><a href="#all-examples">所有的例子</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt 例子和教程</h1>
<span class="subtitle"></span>
<!-- $$$qtexamplesandtutorials.html-description -->
<div class="descr"> <a name="details"></a>
<p>Qt提供了一组代码示例和教程，以帮助新用户开始Qt开发。
这些文档涵盖了一系列主题，从小部件的基本使用到演示如何组合应用程序的逐步教程。</p>
<p>示例是Qt包的一部分。访问 <a href="http://qt.io/download">下载</a> 页面以获得更多信息 。</p>
<a name="running-the-examples"></a>
<h2 id="running-the-examples">运行的例子</h2>
<p>在 Qt Creator 的 <b>欢迎</b> 模式中打开并运行示例 。大多数示例运行在各种平台上，要搜索特定于平台的示例，请在search字段中键入平台名称(或任何关键字)。例如，在搜索栏输入 <code>Android</code> ，会列出完全兼容 Android 的例子。</p>
<p>有关在 Qt Creator 中运行示例的更多信息，请访问 <a href="../qtcreator/creator-build-example-application.html">构建和运行示例</a> 页面 。</p>
<p>要查看所有Qt示例的列表，请访问 <a href="all-examples.html">Qt示例列表</a> 页面。</p>
<div class="multi-column"><div class="doc-column"><p><b>建立项目</b></p>
<ul>
<li><a href="../qtcreator/quick-projects.html">Qt Quick 项目</a></li>
<li><a href="../qtcreator/creator-writing-program.html">Qt Widget 项目</a></li>
<li><a href="../qtcreator/creator-configuring-projects.html">配置项目</a></li>
</ul>
</div><div class="doc-column"><p><b>必要</b></p>
<ul>
<li><a href="../qtcreator/creator-building-targets.html">多平台构建</a></li>
<li><a href="../qtcreator/creator-running-targets.html">多平台运行</a></li>
<li><a href="../qtcreator/creator-deployment.html">部署到设备</a></li>
<li><a href="../qtcreator/creator-connecting-mobile.html">连接设备</a></li>
</ul>
<ul>
<li><a href="../qtcreator/creator-building-running.html">查看更多</a></li>
</ul>
</div><div class="doc-column"><p><b>平台的例子</b></p>
<ul>
<li><a href="examples-android.html">Android</a></li>
<li><a href="examples-ios.html">iOS</a></li>
<li><a href="../qtmacextras/examples-qtmacextras.html">Mac Extras</a></li>
<li><a href="../qtwinextras/examples-qtwinextras.html">Windows Extras</a></li>
<li><a href="../activeqt/activeqt-index.html#examples">Active Qt 例子</a></li>
</ul>
</div><div class="doc-column"><p><b>QML 和 Qt Quick</b></p>
<ul>
<li><a href="qmlfirststeps.html">QML的第一步</a></li>
<li><a href="../qtcreator/creator-visual-editor.html">开发 Qt Quick 应用程序</a></li>
<li><a href="../qtquickcontrols1/qtquickcontrols1-gallery-example.html">Qt Quick Controls 1 - 画廊</a></li>
<li><a href="../qtquickcontrols/qtquickcontrols-gallery-example.html">Qt Quick Controls - 画廊</a></li>
<li><a href="../qtquick/qml-advtutorial.html">SameGame</a></li>
<li><a href="qtquickcontrols-texteditor.html">Qt Quick 文本编辑器向导</a></li>
</ul>
<ul>
<li><a href="../qtquick/qtquick-codesamples.html">查看更多</a></li>
</ul>
</div><div class="doc-column"><p><b>Widgets</b></p>
<ul>
<li><a href="../qtwidgets/qtwidgets-tutorials-notepad-example.html">文本编辑器</a></li>
<li><a href="../qtwidgets/modelview.html">Model-View</a></li>
<li><a href="../qtwidgets/examples-itemviews.html">Item Views 例子</a></li>
<li><a href="../qtwidgets/examples-mainwindow.html">Main Window 例子</a></li>
<li><a href="examples-layouts.html">Layout 例子</a></li>
<li><a href="../qtwidgets/stylesheet-examples.html">Style Sheets 例子</a></li>
</ul>
<ul>
<li><a href="../qtwidgets/examples-widgets.html">查看更多</a></li>
</ul>
</div><div class="doc-column"><p><b>图形</b></p>
<ul>
<li><a href="../qtquick/qtquick-scenegraph-openglunderqml-example.html">QML 下的 OpenGL</a></li>
<li><a href="../qtquick/qtquick-customitems-painteditem-example.html">Painted Item</a></li>
<li><a href="../qtwidgets/examples-painting.html">Painting 例子</a></li>
<li><a href="../qtwidgets/examples-graphicsview.html">Graphics View 例子</a></li>
<li><a href="../qtwidgets/examples-richtext.html">Rich Text 例子</a></li>
<li><a href="examples-animation.html">Animation Framework 例子</a></li>
</ul>
</div><div class="doc-column"><p><b>数据和网络</b></p>
<ul>
<li><a href="../qtnetwork/examples-network.html">网络的例子</a></li>
<li><a href="examples-sql.html">SQL 例子</a></li>
<li><a href="examples-xml.html">XML 例子</a></li>
<li><a href="../qtcore/qtcore-serialization-savegame-example.html">JSON Save Game 例子</a></li>
<li><a href="../qtwebchannel/qtwebchannel-examples.html">Qt WebChannel 例子</a></li>
<li><a href="../qtwebengine/webengine-examples.html">Qt WebEngine 例子</a></li>
<li><a href="../qtwebengine/webengine-widgetexamples.html">Qt WebEngine Widgets 例子</a></li>
<li><a href="../qtwebsockets/qtwebsockets-examples.html">WebSocket 例子</a></li>
</ul>
</div><div class="doc-column"><p><b>应用程序</b></p>
<ul>
<li><a href="../qtwidgets/qtwidgets-mainwindows-application-example.html">Application 例子</a></li>
<li><a href="../qtquick/qtquick-window-example.html">Window and Screen 例子</a></li>
<li><a href="plugins-howto.html">如何创建 Qt 插件</a></li>
<li><a href="../qtwidgets/qtwidgets-tools-plugandpaint-app-example.html">Plug &amp; Paint 例子</a> (插件 例子)</li>
</ul>
</div><div class="doc-column"><p><b>进程和线程</b></p>
<ul>
<li><a href="thread-basics.html">线程的基本知识</a></li>
<li><a href="examples-threadandconcurrent.html">线程和并发编程</a></li>
<li><a href="../qtdbus/examples-dbus.html">D-Bus 例子</a></li>
<li><a href="examples-ipc.html">进程间通信 (IPC) 例子</a></li>
</ul>
</div><div class="doc-column"><p><b>多媒体</b></p>
<ul>
<li><a href="../qtmultimedia/qtmultimedia-multimediawidgets-player-example.html">媒体播放器</a></li>
<li><a href="../qtmultimedia/qtmultimedia-multimediawidgets-videowidget-example.html">视频 Widget</a></li>
<li><a href="../qtmultimedia/qtmultimedia-multimediawidgets-camera-example.html">相机 例子</a></li>
</ul>
<ul>
<li><a href="../qtmultimedia/multimedia-examples.html">查看更多</a></li>
</ul>
</div><div class="doc-column"><p><b>周边设备及位置</b></p>
<ul>
<li><a href="../qtbluetooth/bluetooth-examples.html">Bluetooth 例子</a></li>
<li><a href="../qtlocation/qtlocation-examples.html">Location 例子</a></li>
<li><a href="../qtnfc/nfc-examples.html">NFC 例子</a></li>
<li><a href="../qtpositioning/qtpositioning-examples.html">Positioning 例子</a></li>
<li><a href="../qtsensors/qtsensors-examples.html">Sensor 例子</a></li>
<li><a href="../qtserialport/qtserialport-examples.html">Serial Port 例子</a></li>
<li><a href="../qtserialbus/qtserialbus-examples.html">Serial Bus 例子</a></li>
</ul>
</div><div class="doc-column"><p><b>工具</b></p>
<ul>
<li><a href="../qtassistant/examples-qtassistant.html">Qt Assistant 例子</a></li>
<li><a href="../qtdesigner/examples-designer.html">Qt Designer 例子</a></li>
<li><a href="../qthelp/examples-qthelp.html">Qt Help 例子</a></li>
<li><a href="../qtlinguist/examples-linguist.html">Qt Linguist 例子</a></li>
<li><a href="../qtcreator/index.html">Qt Creator 手册</a></li>
</ul>
</div></div><a name="community-examples"></a>
<h2 id="community-examples">社区的例子</h2>
<p>要查看和运行Qt项目提供的示例， 参观 <a href="http://wiki.qt.io/Category:Learning::Demos_and_Examples">社区的例子</a> 页 。</p>
<a name="all-examples"></a>
<h2 id="all-examples">All Examples</h2>
<p><a href="qtexamples.html">所有Qt例子</a> 按所属的Qt模块分类排列 。</p>
</div>
<!-- @@@qtexamplesandtutorials.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p><acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd. 文档贡献包括在这里是各自所有者的版权。<br /> 在此提供的文档是根据由自由软件基金会发布的<a
    href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a>的条款授权的。<br />
  Qt及其商标为Qt有限公司的商标。在芬兰和/或世界其他国家。所有其他商标均为其各自所有者的财产 。</p>
</div>
</body>
</html>
